﻿using System;
using System.Resources;
using System.Drawing;
using System.Reflection;
using System.IO;

namespace DFUtil
{
    public class Tileset
    {
        #region Static Variables
        private static Bitmap _tileset = null;
        #endregion

        #region Properties
        public Bitmap Bitmap
        {
            get { return _tileset; }
        }

        public int GridWidth
        {
            get { return _tileset.Width / 16; }
        }

        public int GridHeight
        {
            get { return _tileset.Height / 16; }
        }
        #endregion

        #region
        public Tileset()
        {
            Assembly myAssembly = Assembly.GetExecutingAssembly();
            Stream myStream = myAssembly.GetManifestResourceStream("DFUtil.Images.curses_640x300.bmp");
            _tileset = new Bitmap(myStream);
        }
        #endregion
    }
}
